home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-eplain-archive
/
000031_cadwell@shishi.ca.boeing.com_Tue Sep 27 12:02:49 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1995-01-08
|
2KB
Received: from atc.boeing.com by cs.umb.edu with SMTP id AA08395
(5.65c/IDA-1.4.4 for <tex-eplain@cs.umb.edu>); Tue, 27 Sep 1994 22:02:22 -0400
Received: by atc.boeing.com (5.57)
id AA20081; Tue, 27 Sep 94 19:05:22 -0700
Received: from shishi.ca.boeing.com by splinter.boeing.com with SMTP
(16.6/16.2) id AA12347; Tue, 27 Sep 94 19:02:58 -0700
Received: by shishi.ca.boeing.com (920330.SGI/920502.SGI)
for @splinter.ca.boeing.com:tex-eplain@cs.umb.edu id AA02517; Tue, 27 Sep 94 19:02:49 -0700
Date: Tue, 27 Sep 94 19:02:49 -0700
From: cadwell@shishi.ca.boeing.com (Jim Cadwell)
Message-Id: <9409280202.AA02517@shishi.ca.boeing.com>
To: tex-eplain@cs.umb.edu
Subject: Having problem with eplain table of contents [2nd e-mail try]
[You may be receiving this message for the second time--e-mail problem here.]
Hello,
I am having a problem with eplain table of contents.
I do not know if it is me, the documentation, or
centered elsewhere.
My version is 2.6: 2 May 1994 (and plain 3.1415).
And I'm running on an SGI IRIX 4.0.5.
In the first case, a tex file thus
\input eplain
\writetocentry{chapter}{part1}
\centerline{Contents}
\readtocfile
\bye
only produces the line "Contents."
A peek into the toc file after running tex shows that it has
the correct entries:
\tocchapterentry {part1}{1}
The above results suggest (1) that the \writetocentry
opens the toc file for writing (2) since after running tex
the data IS in the toc file, \readtocfile ``found'' that
the toc file was already open, so did not reopen it, and
(3) since there are no table of contents entries in the
output that on \readtocfile the file pointer was passed
the data (at the end of file), thus, no data read.
In the second case I add a \readtocfile before the
first \writetocentry, per the doc:
\input eplain
\readtocfile
\writetocentry{chapter}{part1}
\centerline{Contents}
\readtocfile
\bye
Now, the output on the first run of tex is as above, but
on a second run, with a toc from the first run still present,
the output is
part1 ........................... 1
Contents
Thus the first \readtocfile output the table entry, followed
by the ``Contents'' line.
Thank you much for taking this moment to consider this problem,
I am enjoying learning and using eplain!!
Jim
--
Jim Cadwell
cadwell@shishi.ca.boeing.com
(206) 655-1415